/**
 *
 */
package bank;

import javax.swing.UIManager;

import bank.gui.View;
import bank.observer.CheckingAccountObserver;
import bank.observer.SavingAccountObserver;
import framework.BaseManager;

/**
 * @author ekamoliddinov
 */
public class BankFrm {
    static public void main(String args[]) {
        try {
            // Add the following code if you want the Look and Feel
            // to be set to the Look and Feel of the native system.
            try {
                UIManager.setLookAndFeel(UIManager
                        .getSystemLookAndFeelClassName());
            } catch (Exception e) {
            }

            // Create a new instance of our application's frame, and make it
            // visible.
            
            View v = new View();
            v.setVisible(true);
            new CheckingAccountObserver(v);
            new SavingAccountObserver(v);
        } catch (Throwable t) {
            t.printStackTrace();
            // Ensure the application exits with an error condition.
            System.exit(1);
        }
    }
}
